package Demo11;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-12-22
 * Time: 21:30
 */
import java.util.*;
public class Main {
    public static void main(String[] args)  {
        Map<String,String>mp=new HashMap<String,String>();
        Scanner scan=new Scanner(System.in);
        String s = scan.next();

        mp.put("春晓", "春眠不觉晓，处处闻啼鸟。夜来风雨声，花落知多少。");
        mp.put("静夜思", "床前明月光，疑是地上霜。举头望明月，低头思故乡。");
        mp.put("咏鹅", "鹅鹅鹅，曲项向天歌。白毛浮绿水，红掌拨清波。");

        if (mp.containsKey(s)){
            System.out.println(mp.get(s));
        }

        Set<Map.Entry<String,String>> set = mp.entrySet();
        for (Map.Entry<String, String> i : set) {
            System.out.println(i.getKey()+"---"+i.getValue());
        }

        Set<String> strings = mp.keySet();
        Iterator<String> iterator = strings.iterator();
        while (iterator.hasNext()){
            String s1 = iterator.next();
            System.out.println(s1+"---"+mp.get(s1));
        }


    }
}
